import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'
import { ClarityModule } from '@clr/angular';
import { DetailModule } from '../../../detail/detail.module';
import { PsMachineDetailComponent } from '../../../detail/psMachine/psMachine.detail.component';
import { CommonServiceModule } from '../../../common/common.service.module';
import { FormsModule } from '@angular/forms';
import { WatchingComponent } from './watching.component';
import { WatchingPSComponent } from './psMachine/watch.psMachine.component';
import { CommonModule } from '@angular/common';
import { WatchCloudMachineComponent } from './cloudMachine/watch.cloudMachine.component';
@NgModule({
    imports: [
        ClarityModule,
        DetailModule,
        CommonServiceModule,
        FormsModule,
        CommonModule,
        RouterModule.forChild([
            {
                path: '',
                component: WatchingComponent,
                children: [

                    {
                        path: 'psmachine',
                        component: WatchingPSComponent
                    },
                    {
                        path: 'cloudmachine',
                        component: WatchCloudMachineComponent
                    }
                ]
            }
        ])
    ],
    providers: [

    ],
    declarations: [
        WatchingComponent,
        WatchingPSComponent,
        WatchCloudMachineComponent
    ],
    exports: [
        WatchingComponent,
        WatchingPSComponent,
        WatchCloudMachineComponent
    ],
    entryComponents: [
        PsMachineDetailComponent
    ]
})
export class WatchingModule { }